//
//  EventAddMemberCell.m
//  AddEventControler
//
//  Created by Le Dung on 1/30/13.
//  Copyright (c) 2013 LeDung. All rights reserved.
//

#import "EventAddMemberCell.h"

@implementation EventAddMemberCell

@synthesize imageProfile, name, firstMail, addMemberButton;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        imageProfile=[[UIImageView alloc]init];
        imageProfile.frame = CGRectMake(10, 10, 30, 30);
        [self addSubview:imageProfile ];
        
        name =[[UILabel alloc]initWithFrame:CGRectMake(45, 3, 150, 20)];
        [self addSubview:name];
        
        firstMail =[[UILabel alloc]initWithFrame:CGRectMake(45, 26, 150, 20)];
        [self addSubview:firstMail];
        [firstMail setTextColor:[UIColor colorWithRed:95/255.0 green:154/255.0 blue:215/255.0 alpha:1]];
        
        self.addMemberButton=[UIButton buttonWithType:UIButtonTypeCustom];
        self.addMemberButton.frame =CGRectMake(245, 5, 35, 35);
        [self addSubview:self.addMemberButton ];
        
        
        
        
    
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)dealloc {
    [super dealloc];
    [imageProfile release];
    [name release];
    [firstMail release];
    [addMemberButton release];
}
@end
